{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">导入对账单(淘宝CSV文件,仅允许英文和半角字符) [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<table>
<tr>
    <td ><h3>第一步:创建对账单</h3></td>
</tr>
<form name="form" class="form-horizontal well" action="__URL__/import_taobao" method="POST" enctype="multipart/form-data">
<tr>
    <td class="tRight"> <span class="label label-important">订单来源</span> </td>
    <td class="tLeft" colspan="3">
            {:modList('Order_source','','span2','order_source_id')}</td>
</tr>
<tr>
    <td class="tRight"> <span class="label label-important">*对帐周期</span> </td>
    <td class="tLeft" >
            {:modList('Reconcile_cycle','','span2','cycle_id','create_time desc')}</td>
    <td class="tRight" >经办人：</td>
    <td> <input type="hidden" name="user_id" value="{$_SESSION[C('USER_AUTH_KEY')]}">{$_SESSION[C('USER_AUTH_KEY')]|getModelName="User"}</td>
</tr>
<tr>
    <td>导入淘宝订单文件(ExportOrderList命名的文件)：</td>
    <td colspan="3">
        <input id="fileToUpload" type="file" size="45" name="upload" class="input">
        <button type="submit" class="btn btn-primary"><i class="icon-upload icon-white"></i>导入淘宝订单</button>
    </td>
</tr>
</form>
<tr>
    <td colspan="2">&nbsp;</td>
</tr>
<tr>
    <td colspan="2"><h3> 第二步:区分混和订单</h3></td>
</tr>
<form name="form" class="form-horizontal well" action="__URL__/import_taobao_detail" method="POST" enctype="multipart/form-data">

<tr>
   <td colspan=4></td>
</tr>
<tr>
    <td class="tRight"> <span class="alert alert-danger">*订单来源</span> </td>
    <td class="tLeft" >
      {:modList('order_source')}
    </td>
    <td class="tRight" >经办人：</td>
    <td> <input type="hidden" name="user_id" value="{$_SESSION[C('USER_AUTH_KEY')]}">{$_SESSION[C('USER_AUTH_KEY')]|getModelName="User"}</td>
</tr>
<tr>
    <td>导入淘宝商品明细文件(ExportOrderDetail命名的文件)：</td>
    <td colspan="3">
        <input id="fileToUpload" type="file" size="45" name="upload" class="input">
        <button type="submit" class="btn btn-primary"><i class="icon-upload icon-white"></i>导入淘宝商品明细</button>
    </td>
</tr>
</form>
<tr>
    <td colspan="2">&nbsp;</td>
</tr>
<tr>
    <td colspan="2">&nbsp;</td>
</tr>
<tr>
    <td ><h3>第三步:计算退款(可选)</h3></td>
</tr>
<form name="form" class="form-horizontal well" action="__URL__/import_taobao_refund" method="POST" enctype="multipart/form-data">

<tr>
   <td colspan=4></td>
</tr>
<tr>
    <td class="tRight"> <span class="alert alert-danger">*订单来源</span> </td>
    <td class="tLeft" >
      {:modList('order_source')}
    </td>
    <td class="tRight" >经办人：</td>
    <td> <input type="hidden" name="user_id" value="{$_SESSION[C('USER_AUTH_KEY')]}">{$_SESSION[C('USER_AUTH_KEY')]|getModelName="User"}</td>
</tr>
<tr>
    <td>导入淘宝退款：</td>
    <td colspan="3">
        <input id="fileToUpload" type="file" size="45" name="upload" class="input">
        <button type="submit" class="btn btn-primary"><i class="icon-upload icon-white"></i>导入淘宝退款</button>
    </td>
</tr>
</form>
</table>

</div>
</div>
<include file="Public:footer" />
